package cn.wmw.xyy.feign;

import cn.wmw.result.JsonResult;
import cn.wmw.xyy.fallback.CourseFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-course", path = "course", contextId = "courseFeignClient", fallbackFactory = CourseFeignClientFallbackFactory.class)
public interface CourseFeignClient {
    @RequestMapping(value = "/info/{courseIds}",method = RequestMethod.GET)
    JsonResult info(@PathVariable("courseIds") String courseIds);
}
